package com.shoe.mapper;

import com.shoe.pojo.ShoeOrder;
import com.shoe.pojo.ShoeOrderExample;
import com.shoe.pojo.ShoeOrderMoney;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface ShoeOrderMapper {
    int countByExample(ShoeOrderExample example);

    int deleteByExample(ShoeOrderExample example);

    int deleteByPrimaryKey(Long orderId);

    int insert(ShoeOrder record);

    int insertSelective(ShoeOrder record);

    List<ShoeOrder> selectByExample(ShoeOrderExample example);

    ShoeOrder selectByPrimaryKey(Long orderId);

    int updateByExampleSelective(@Param("record") ShoeOrder record, @Param("example") ShoeOrderExample example);

    int updateByExample(@Param("record") ShoeOrder record, @Param("example") ShoeOrderExample example);

    int updateByPrimaryKeySelective(ShoeOrder record);

    int updateByPrimaryKey(ShoeOrder record);
    List<ShoeOrder> selectPage(Map<String,Integer> map);
    List<ShoeOrderMoney> selectOrderMoney(@Param("orderDate1") Date orderDate1, @Param("orderDate2") Date orderDate2);
}